home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
__MANDEL
/
MANDELBR
/
CMAXDWEL.C
< prev
next >
Wrap
Text File
|
1992-03-25
|
899b
|
45 lines
/* CMaxDwellDirector.c */
#include "CMandelApp.h"
#include <Commands.h>
#include <CIntegerText.h>
#include "CMaxDwellDirector.h"
#include "CMandelDoc.h"
#include <CWindow.h>
void CMaxDwellDirector::IMaxDwellDirector(short DLOGid,
CMandelDoc *aMandelDoc,
CDirectorOwner *aSupervisor)
{
CIntegerText *aEditItem;
IDLOGDirector(DLOGid, aSupervisor);
FailNIL(aMandelDoc);
aEditItem = (CIntegerText *)itsWindow->FindViewByID(kMaxDwellEdit);
aEditItem->SetIntValue(aMandelDoc->GetMaxDwell());
itsMandelDoc = aMandelDoc;
}
void CMaxDwellDirector::DoCommand( long aCmd)
{
CIntegerText *aEditItem;
switch (aCmd)
{
case cmdOK:
if (Validate())
{
aEditItem = (CIntegerText *)itsWindow->FindViewByID(kMaxDwellEdit);
itsMandelDoc->SetMaxDwell(aEditItem->GetIntValue());
}
else
break;
default:
inherited::DoCommand( aCmd);
break;
}
}